<template>
	<view class="page-container">
		<view class="fs33 fwb c333 mb28">{{detail.newsTitle}}</view>
		<view class="fs22 c999 flex just-sb mb28">
			<view>{{detail.sourceTime}}</view>
			<view>{{detail.authorName}}</view>
		</view>
		<view class="card_box">
			<view v-html="detail.newsContent"></view>
		</view>
	</view>
</template>

<script>
	import {getAction,gateway} from '@/utils/api.js'
	export default {
		data() {
			return {
				detail:{}
			}
		},
		methods: {
			getDetail(id){
				let params={id}
				getAction(gateway.operate+'/news/newInfo/list',params).then(res=>{
					if(res.code==200){
						this.detail=res.result.records[0] || {}
					}
				})
			}
			
		},
		onLoad(e) {
			// console.log(e);
			this.getDetail(e.id)
		}
	}
</script>

<style>

</style>
